package com.su.currency.core;

import com.su.currency.task.ConsumerTask;
import com.su.currency.task.ProdouceTask;

public class Main {
	public static void main(String args[]){
		
		FileQueue fQueue = new FileQueue();
		ConsumerTask consumerTask = new ConsumerTask(fQueue);
	    ProdouceTask prodouceTask = new ProdouceTask(fQueue);
	    Thread conThread = new Thread(consumerTask);
	    conThread.setName("consumer");
	    conThread.start();
	    Thread pThread = new Thread(prodouceTask);
	    pThread.setName("producer");
	    pThread.start();
		
	}

}
